package com.sasis.model;
// Generated 2007-5-29 15:08:55 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_ADJUST_INSTRUCTION"
 *     
 */

public class FlightAdjustInstruction extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightInfoId;
    private Integer flightAdjustInfoId;
    private String instruction;
    private String needFood;
    private String needHotel;
    private String needCompensation;
    private String foodAddress;
    private Timestamp foodTime;
    private Integer operator;
    
    private String operatorName;
    
    private Timestamp operatime;


    // Constructors

    /** default constructor */
    public FlightAdjustInstruction() {
    }

    
    /** full constructor */
    public FlightAdjustInstruction(Integer flightInfoId, Integer flightAdjustInfoId, String instruction, String needFood, String needHotel, String needCompensation, String foodAddress, Timestamp foodTime, Integer operator, Timestamp operatime) {
        this.flightInfoId = flightInfoId;
        this.flightAdjustInfoId = flightAdjustInfoId;
        this.instruction = instruction;
        this.needFood = needFood;
        this.needHotel = needHotel;
        this.needCompensation = needCompensation;
        this.foodAddress = foodAddress;
        this.foodTime = foodTime;
        this.operator = operator;
        this.operatime = operatime;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_INFO_ID"
     *             length="22"
     *         
     */

    public Integer getFlightInfoId() {
        return this.flightInfoId;
    }
    
    public void setFlightInfoId(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_ADJUST_INFO_ID"
     *             length="22"
     *         
     */

    public Integer getFlightAdjustInfoId() {
        return this.flightAdjustInfoId;
    }
    
    public void setFlightAdjustInfoId(Integer flightAdjustInfoId) {
        this.flightAdjustInfoId = flightAdjustInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="INSTRUCTION"
     *             length="1024"
     *         
     */

    public String getInstruction() {
        return this.instruction;
    }
    
    public void setInstruction(String instruction) {
        this.instruction = instruction;
    }
    /**       
     *      *            @hibernate.property
     *             column="NEED_FOOD"
     *             length="1"
     *         
     */

    public String getNeedFood() {
        return this.needFood;
    }
    
    public void setNeedFood(String needFood) {
        this.needFood = needFood;
    }
    /**       
     *      *            @hibernate.property
     *             column="NEED_HOTEL"
     *             length="1"
     *         
     */

    public String getNeedHotel() {
        return this.needHotel;
    }
    
    public void setNeedHotel(String needHotel) {
        this.needHotel = needHotel;
    }
    /**       
     *      *            @hibernate.property
     *             column="NEED_COMPENSATION"
     *             length="1"
     *         
     */

    public String getNeedCompensation() {
        return this.needCompensation;
    }
    
    public void setNeedCompensation(String needCompensation) {
        this.needCompensation = needCompensation;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_ADDRESS"
     *             length="64"
     *         
     */

    public String getFoodAddress() {
        return this.foodAddress;
    }
    
    public void setFoodAddress(String foodAddress) {
        this.foodAddress = foodAddress;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_TIME"
     *             length="7"
     *         
     */

    public Timestamp getFoodTime() {
        return this.foodTime;
    }
    
    public void setFoodTime(Timestamp foodTime) {
        this.foodTime = foodTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATIME"
     *             length="7"
     *         
     */

    public Timestamp getOperatime() {
        return this.operatime;
    }
    
    public void setOperatime(Timestamp operatime) {
        this.operatime = operatime;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightInfoId").append("='").append(getFlightInfoId()).append("' ");			
      buffer.append("flightAdjustInfoId").append("='").append(getFlightAdjustInfoId()).append("' ");			
      buffer.append("instruction").append("='").append(getInstruction()).append("' ");			
      buffer.append("needFood").append("='").append(getNeedFood()).append("' ");			
      buffer.append("needHotel").append("='").append(getNeedHotel()).append("' ");			
      buffer.append("needCompensation").append("='").append(getNeedCompensation()).append("' ");			
      buffer.append("foodAddress").append("='").append(getFoodAddress()).append("' ");			
      buffer.append("foodTime").append("='").append(getFoodTime()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operatime").append("='").append(getOperatime()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightAdjustInstruction) ) return false;
		 FlightAdjustInstruction castOther = ( FlightAdjustInstruction ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightInfoId()==castOther.getFlightInfoId()) || ( this.getFlightInfoId()!=null && castOther.getFlightInfoId()!=null && this.getFlightInfoId().equals(castOther.getFlightInfoId()) ) )
 && ( (this.getFlightAdjustInfoId()==castOther.getFlightAdjustInfoId()) || ( this.getFlightAdjustInfoId()!=null && castOther.getFlightAdjustInfoId()!=null && this.getFlightAdjustInfoId().equals(castOther.getFlightAdjustInfoId()) ) )
 && ( (this.getInstruction()==castOther.getInstruction()) || ( this.getInstruction()!=null && castOther.getInstruction()!=null && this.getInstruction().equals(castOther.getInstruction()) ) )
 && ( (this.getNeedFood()==castOther.getNeedFood()) || ( this.getNeedFood()!=null && castOther.getNeedFood()!=null && this.getNeedFood().equals(castOther.getNeedFood()) ) )
 && ( (this.getNeedHotel()==castOther.getNeedHotel()) || ( this.getNeedHotel()!=null && castOther.getNeedHotel()!=null && this.getNeedHotel().equals(castOther.getNeedHotel()) ) )
 && ( (this.getNeedCompensation()==castOther.getNeedCompensation()) || ( this.getNeedCompensation()!=null && castOther.getNeedCompensation()!=null && this.getNeedCompensation().equals(castOther.getNeedCompensation()) ) )
 && ( (this.getFoodAddress()==castOther.getFoodAddress()) || ( this.getFoodAddress()!=null && castOther.getFoodAddress()!=null && this.getFoodAddress().equals(castOther.getFoodAddress()) ) )
 && ( (this.getFoodTime()==castOther.getFoodTime()) || ( this.getFoodTime()!=null && castOther.getFoodTime()!=null && this.getFoodTime().equals(castOther.getFoodTime()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperatime()==castOther.getOperatime()) || ( this.getOperatime()!=null && castOther.getOperatime()!=null && this.getOperatime().equals(castOther.getOperatime()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightInfoId() == null ? 0 : this.getFlightInfoId().hashCode() );
         result = 37 * result + ( getFlightAdjustInfoId() == null ? 0 : this.getFlightAdjustInfoId().hashCode() );
         result = 37 * result + ( getInstruction() == null ? 0 : this.getInstruction().hashCode() );
         result = 37 * result + ( getNeedFood() == null ? 0 : this.getNeedFood().hashCode() );
         result = 37 * result + ( getNeedHotel() == null ? 0 : this.getNeedHotel().hashCode() );
         result = 37 * result + ( getNeedCompensation() == null ? 0 : this.getNeedCompensation().hashCode() );
         result = 37 * result + ( getFoodAddress() == null ? 0 : this.getFoodAddress().hashCode() );
         result = 37 * result + ( getFoodTime() == null ? 0 : this.getFoodTime().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperatime() == null ? 0 : this.getOperatime().hashCode() );
         return result;
   }


public String getOperatorName() {
	return operatorName;
}


public void setOperatorName(String operatorName) {
	this.operatorName = operatorName;
}   





}
